package com.dengc;

import java.awt.*;
import java.util.StringTokenizer;

public class Gold extends Object{

    Gold(){
        this.x = (int) (Math.random()*700);
        this.y = (int) (Math.random()*550+300);
        this.height = 52;
        this.width = 52;
        this.flag = false;
        this.m = 30;
        this.count = 4;
        this.type = 1;
        this.image = Toolkit.getDefaultToolkit().getImage("imgs/gold1.gif");
    }

}

class GoldMini extends Gold{
    GoldMini(){
        this.width = 36;
        this.height = 36;
        this.m = 15;
        this.count = 2;
        this.image = Toolkit.getDefaultToolkit().getImage("imgs/gold0.gif");
    }
}

class GoldPlus extends Gold{
    GoldPlus(){
        this.x = (int) (Math.random()*650);
        this.width = 105;
        this.height = 105;
        this.m = 66;
        this.count = 8;
        this.image = Toolkit.getDefaultToolkit().getImage("imgs/gold2.gif");
    }
}